package Bk.basic;

public class J05_Computelnvestment {

	public static void main(String[] args) {

		int cash = 25000;
		int i= 1;
		int sum = (cash * 6 / 100) * i;
		while ( cash < 50000) {
			System.out.println( cash = cash + sum );
			++i;
		}
		
		
		
	}

}

// 원금+이자  sum = cash + (cash * 6 / 100)
// 이자 cash * 6 / 100